           
<div id="border"> 
  <form action="" method="post">
  <div class="property_line_ccc"></div>
  <div style="background:url(<?=base_url();?>images/bg_propeties.jpg); width:980px; height:266px;  color:#FFF; font-family:Arial, Helvetica, sans-serif;">
  <? include APPPATH."views/templates/common/property_search.php";?>	
  <a class="property_ads" href="<?=site_url("property/p")?>"><div><?=$Z_TRANS->value('menu_post_property')?></div></a>
  </div>
    <div style="background:#BD2031; height:2px;"></div>
  <div id="property">
  	<?php $str_path = str_replace("\\", "/", FCPATH);
		  foreach($results->result_array() as $row_pro): 
			$filename =$str_path.$row_pro['file_path'].$row_pro['pic_name'];
	?>
    	<div class="ddt" align="center">
        	 <? if(isset($row_pro['pic_name']) && file_exists ($filename)){?>	
        		<a href="<?=site_url("property/detail/".$row_pro['property_id'])?>"><img src="<?=base_url();?><?=$row_pro['file_path'];?><?=$row_pro['pic_name'];?>" width="178" height="116" /></a>
			 <? }else {?>
              <div class="border_img_property"><a href="<?=site_url("property/detail/".$row_pro['property_id'])?>"><img src="<?=base_url();?>images/nopic.gif"  /></a></div>
             <? }?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="20%" valign="top"><?=$Z_TRANS->value('title_name')?></td>
                <td valign="top">:</td><td> <?=substr($row_pro['property_name'],0,18)."..";?></td>
              </tr>
              <tr>
                <td><?=$Z_TRANS->value('title_type')?></td>
                <td>:</td><td> <?=$row_pro['property_type']?></td>
              </tr>
              <tr>
                <td><?=$Z_TRANS->value('title_locations')?></td>
                <td>:</td><td> <?=$row_pro['location_name']?></td>
              </tr>  
              <tr>
                <td colspan="3"> <?=$Z_TRANS->value('title_floors')?> : <?=$row_pro['no_of_floor'];?>&nbsp;&nbsp;<?=$Z_TRANS->value('title_baths')?> : <?=$row_pro['no_of_bathroom'];?>&nbsp;&nbsp;<?=$Z_TRANS->value('title_beds')?> : <?=$row_pro['no_of_bedrooms'];?></td>
              </tr>
              <tr>
                <td colspan="3"><?=$Z_TRANS->value('title_price')?> : <font color="#BD2031">$<?=$row_pro['property_price'];?></font></td>
              </tr>
            </table>
            
        </div>
 		<?php endforeach;?>	
        
        <div class="pagination"><?php echo $this->pagination->create_links(); ?></div>	
    </div>
		
	<? include APPPATH."views/templates/common/property_ads.php";?>	  
	<? include APPPATH."views/templates/common/property_menu_bottom.php";?>	   
 </form> 
    
</div>